cmake_minimum_required(VERSION 2.8)

set(CMAKE_CXX_STANDARD 11)

project(EventHandler)

## 保存工程路径
set(PROJECT_PATH ${CMAKE_CURRENT_SOURCE_DIR})

## 保存输出路径
set(OUTPUT_PATH            ${PROJECT_PATH}/release)
set(LIBRARY_OUTPUT_PATH    ${OUTPUT_PATH}/lib)
set(EXECUTABLE_OUTPUT_PATH ${OUTPUT_PATH}/bin)

## add_definitions(-DFOO -DDEBUG ...)
option(TEST_DEBUG "option for debug" OFF)
if (TEST_DEBUG)
add_definitions(-DTEST_DEBUG)
endif()

set(CMAKE_C_COMPILER "gcc")
set(CMAKE_CXX_COMPILER "g++")

set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -g3")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -std=c++11 -g3 -O0 -fpermissive")

add_subdirectory(source/client )
add_subdirectory(source/example)
add_subdirectory(source/server )





